package com.oilsoft.scm.domain.contour;

import java.util.ArrayList;
import java.util.List;

public abstract class Figure {
	private int num;
	private int color;
	private List<Point> points;

	public Figure() {
	}

	public Figure(int num, int color, List<Point> points) {
		super();
		this.num = num;
		this.color = color;
		this.points = points;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public List<Point> getPoints() {
		return points;
	}

	public void setPoints(List<Point> points) {
		this.points = points;
	}

	public void addPoint(Point p) {
		if (points == null)
			points = new ArrayList<Point>();
		points.add(p);
	}

}
